package com.qf.cosmetology.result;

public class ResponseData {

    private String eCode;
    private String errorInfo;
    private  Object data;

    public ResponseData(String eCode,String errorInfo,Object data) {
        this.eCode = eCode;
        this.errorInfo=errorInfo;
        this.data=data;
    }

    public ResponseData(String eCode,String errorInfo) {
        this.eCode = eCode;
        this.errorInfo=errorInfo;
    }

    public ResponseData(ResponseCode responseCode,Object data) {
        this.eCode=responseCode.geteCode();
        this.errorInfo=responseCode.getErrorInfo();
        this.data=data;
    }

    public ResponseData(ResponseCode responseCode) {
        this.eCode=responseCode.geteCode();
        this.errorInfo=responseCode.getErrorInfo();
    }

    public ResponseData() {

    }

    public String geteCode() {
        return eCode;
    }

    public void seteCode(String eCode) {
        this.eCode = eCode;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }





}
